summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/device_memory_manager.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/device_memory_manager.inc b/src/core/device_memory_manager.inc
index 4fb3ad3ab..b3a5f3d8b 100644
--- a/src/core/device_memory_manager.inc
+++ b/src/core/device_memory_manager.inc
@@ -78,7 +78,7 @@ public:
u32 next_entry = current->next_entry;
if (next_entry != 0) {
next = &storage[next_entry - 1];
- more_than_one_remaining = next->next_entry != 0;
+ more_than_one_remaining = next->next_entry != 0 || previous != nullptr;
}
if (previous) {
previous->next_entry = next_entry;